<template>
  <container>
    <!-- 类似于img标签 -->
    <sprite :texture='endPageImg'></sprite>
    <sprite :texture='startBtnImg' :x='228' :y='510' @click="onClick" :interactive="true"></sprite>
  </container>
</template>

<script>
import endPageImg from '@/assets/end_page.jpg'
import startBtnImg from '@/assets/startBtn.png'
export default {
  setup(props, { emit }) {
    const onClick = () => {
      // console.log('clock')
      emit('change-page', 'GamePage')
    }

    return {
      endPageImg,
      startBtnImg,
      onClick
    }
  }
}
</script>
